Download Certified Associate in Python Programming.PCAP.NewDumps.2021-03-13.54q.vcex

Vendor: Python Institute
Exam Code: PCAP
Exam Name: Certified Associate in Python Programming
Date: Mar 13, 2021
File Size: 3 MB
Downloads: 1

How to open VCEX files?

Files with VCEX extension can be opened by ProfExam Simulator.

Purchase
Coupon: EXAM_HUB

Discount: 20%

Demo Questions

Question 1
Which of the following expressions evaluate to True? (Select two answers)
  1. str(1-1) in '012345£739'[:2]
  2. 'phd' in 'alpha'
  3. 'deb' not in 'abcde' [::-1]
  4. 'True' not in 'False'
Correct answer: CD
Question 2
What is true about the following snippet? (Select two answers) 
Class E (Exception)
   
  1. the code will raise an unhandled exception
  2. the siring I feel fine 'will be seen
  3. the string it's nice to see you will be seen
  4. the string what a pity will be seen
Correct answer: BD
Question 3
Assuming that the following piece of code has been executed successfully, which of the expressions evaluate to True? (Select two answers) 
   
  1. obj_b.prop_a == 3
  2. hasattr(obj_b, 'prop_aa')
  3. isinstance(obj_c,A)
  4. B.VarA == 3
Correct answer: BC
Question 4
A Python module named pymod.py contains a variable named pyvar. 
Which of the following snippets will let you access the variable? (Select two answers)
  1. import pyvar from pymod pyvar = 1
  2. from pymod import pyvar = 1 
  3. from pymod import pyvar pyvar ()
  4. import pymod pymod.pyvar = 1
Correct answer: AD
Question 5
What is the expected behavior of the following code? 
   
  1. it outputs 6
  2. it outputs 1
  3. it outputs 3
  4. it raises an exception 
Correct answer: A
Question 6
What is the expected output of the following code? 
def foo(x,y,z):
return x(y) - x(z) 
print{f00(lambda x: x % 2, 2, 1) )
  1. 1
  2. -1
  3. an exception is raised
Correct answer: C
Question 7
What is the expected output of the following code if there is no file named non existing_file inside the working directory? 
   
  1. 2 2
  2. 1 3
  3. 1 2 3
  4. 2 2 3
Correct answer: D
Question 8
Which of the following lambda function definitions are correct? (Select two answers)
  1. lambda X : None
  2. lambda : 3,1415
  3. lambda x : def fun(x): return x
  4. lambda lambda: lambda * lambda
Correct answer: AB
Question 9
What is true about Python class constructors? (Select two answers) 
  1. the constructor's first parameter identifies an object currently being created
  2. the constructor cannot use the default values of the parameters
  3. the constructor can be invoked directly under strictly defined circumstances
  4. super-class constructor is invoked implicitly during constructor execution
Correct answer: A
Question 10
What is the expected behavior of the following code? 
   
  1. it outputs 1
  2. it outputs 0
  3. it raises an exception
  4. it outputs 2
Correct answer: C
HOW TO OPEN VCE FILES

Use VCE Exam Simulator to open VCE files
Avanaset

HOW TO OPEN VCEX AND EXAM FILES

Use ProfExam Simulator to open VCEX and EXAM files
ProfExam Screen

ProfExam
ProfExam at a 20% markdown

You have the opportunity to purchase ProfExam at a 20% reduced price

Get Now!